package com.tenxun.mapper;

import com.tenxun.pojo.Stu;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface StuMapper {
    public List<Stu> list(Integer num);

    List<Stu> selectrows(Stu stu);

    int delectrows(Long... a);

    int insertrows(Stu stu);

    int updaterow(Stu stu);

    @Select("select * from student where id=#{id}")
    Stu findId(Long... id);
}
